package MVC.Views;

import MVC.Controller;
import MVC.View;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class TabuleiroView extends View {

    /* Atributos */
    private JPanel mainPanel;
    private JPanel tabuleiroPanel;
    private JPanel statusPanel;
    private JPanel primeiroQuadrantePanel;
    private JPanel segundoQuadrantePanel;
    private JPanel terceiroQuadrantePanel;
    private JPanel quartoQuadrantePanel;
    private JButton button1;
    private JButton button2;
    private JButton button3;
    private JButton button4;
    private JButton button5;
    private JButton button6;
    private JButton button7;
    private JButton button8;
    private JButton button9;
    private JButton button10;
    private JButton button11;
    private JButton button12;
    private JButton button13;
    private JButton button14;
    private JButton button15;
    private JButton button16;
    private JButton button17;
    private JButton button18;
    private JButton button19;
    private JButton button20;
    private JButton button21;
    private JButton button22;
    private JButton button23;
    private JButton button24;
    private JButton button25;
    private JButton button26;
    private JButton button27;
    private JButton button28;
    private JButton button29;
    private JButton button30;
    private JButton button31;
    private JButton button32;
    private JButton button33;
    private JButton button34;
    private JButton button35;
    private JButton button36;
    private JLabel jogador1Label;
    private JLabel jogador2Label;
    private JPanel rotacaoTopPanel;
    private JPanel rotacaoBottomPanel;
    private JButton rotateRightQuad1;
    private JButton rotateRightQuad2;
    private JButton rotateRightQuad3;
    private JButton rotateRightQuad4;
    private JButton rotateLeftQuad1;
    private JButton rotateLeftQuad2;
    private JButton rotateLeftQuad3;
    private JButton rotateLeftQuad4;

    /* Métodos */
    public void rendered() {
        frame.setMinimumSize(new Dimension(550, 550));

        JMenuItem desconectarMenuItem = new JMenuItem("Desconectar");
        desconectarMenuItem.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent actionEvent) {
                Controller.jogadorController.desconectar();
            }
        });

        fileMenu.add(desconectarMenuItem);

        show();
    }

    public JPanel mainPanel() {
        return mainPanel;
    }

}
